import request from '@/utils/request'
export const channels = () => {
  return request({
    url: '/v1_0/channels'
  })
}

export const userChannels = () => {
  return request({
    url: '/v1_0/user/channels'
  })
}

export const articles = params => {
  return request({
    url: '/v1_0/articles',
    params
  })
}

export const userChannelsPut = data => {
  return request({
    url: ' /v1_0/user/channels',
    method: 'put',
    data
  })
}
